# -*- coding: utf-8 -*-
"""
@Time ： 2021/2/9 9:03
@Auth ： Mr. JJ_Cloud
@Company ：testingedu.com.cn
@Function ：问题反馈接口测试
"""

import requests,json

url = "http://aniuapi.dzcj.tv/aniuapi/api/v2/feedback/save"
params = {"channelid":"700100",
          "clienttype":"3",
          "clientid":"f2897d5621fed50d51efa4a473b183ed",
          "devid":"800039",
          "time":"20210208101529",
          "version":"6.1.1",
          "platform":"app_anzt_anzt",
          "sign":"4257a89e00c1dd159db2ed188f5ab692"
          }
data = {"uid":"4138358",
        "netOperator":"中国电信",
        "broadband":"wifi",
        "name":"150****1134",
        "userAgent":"DZCJ_android_6.1.1_8.1.0_Lenovo_OPM1.171019.019 dev-keys",
        "type":"44444444444",
        "vip":"0",
        "content":"444444444"
        }
headers ={"Content-Type":"application/json"}
res = requests.post(url=url,params=params,data=data)
# print(res.text) # 输出为一行文本
res_dict = json.loads(res.text) # 将响应转为json对象（字典）
print(json.dumps(res_dict, indent=2, sort_keys=True, ensure_ascii=False)) # 重新转为文本，格式化输出
